<script type="text/javascript">
    {literal}
    $(document).ready(function() {
        $('#checkRememberClient').click (function (){
            if ($(this).is (':checked')){
                rememberClientFilter(1);
            } else {
                rememberClientFilter(0);
            }
        });
    });
    {/literal}
</script>
&nbsp;<br/>
<div class="navigWrapper">
    <table class="mainNavig">
        <tr>
            <td class="tdleft">
                <a class="mainNavigA" href="{$data.root}?input=list_of_tasks">Tasks</a>
            </td>
            <td class="tdcenter">
                &nbsp;
            </td>
            <td class="tdright">
                <a class="mainNavigA" href="{$data.root}?input=add_task">+</a>
            </td>
        </tr>
        <tr>
            <td class="empty" colspan="3"></td>
        </tr>
        <tr>
            <td class="tdleft">
                <a class="mainNavigA" href="{$data.root}?input=timesheets">TSDR</a>
            </td>
            <td class="tdcenter">
                &nbsp;
            </td>
            <td class="tdright">
                <a class="mainNavigA" href="{$data.root}?input=timesheets&add=new">+</a>
            </td>
        </tr>
        <tr>
            <td class="empty" colspan="3"></td>
        </tr>
        <tr>
            <td class="tdleft">
                <a class="mainNavigA" href="{$data.root}?input=state_of_cash">Cash</a>
            </td>
            <td class="tdcenter">
                &nbsp;
            </td>
            <td class="tdright">
                <a class="mainNavigA" href="{$data.root}?input=add_entry">+</a>
            </td>
        </tr>
        <tr>
            <td class="empty" colspan="3"></td>
        </tr>
        <tr>
            <td class="tdleft" colspan="3">
                <a class="mainNavigA" href="{$data.root}?input=list_of_clients">Lists</a>
            </td>
        </tr>
        <tr>
            <td class="empty" colspan="3"></td>
        </tr>
        <tr>
            <td class="tdleft" colspan="3">
                <a class="mainNavigA" href="{$data.root}?input=reports">Reports</a>
            </td>
        </tr>
    </table>
</div>

<div class="navigTools">
    <table>
        <tr>
            <td colspan="2">
                <select id="hardClientFilter" size="1" onchange="changeClientFilter(this.value, 'checkRememberClient')">
                    <option value="0">Show all clients</option>
                    {foreach $data.clients as $key => $client}
                        <option {if $smarty.session.user.user_type_id!=$smarty.const.USER_TYPE_CLIENT && $client.bad_payer==1}class="badPayer"{/if} {if $client.klient_id==$smarty.session.user.clientFilter}selected="selected"{/if} value="{$client.klient_id}">{$client.name}</option>
                    {/foreach}
                </select>
            </td>
        </tr>
        <tr style="display: none;">
            <td style="padding-left: 5px;"><label for="checkRememberClient">Remember client</label></td>
            <td>
              <input disabled="disabled" type="checkbox" value="1" id="checkRememberClient" {if isset($smarty.session.user.rememberClientFilter)}checked="checked"{/if} />
            </td>
        </tr>

    </table>
</div>
{*         
<div class="navigTools">
    <strong>Explanatory Notes</strong>
    <ul>
        <li>AH - after hours</li>
    </ul>
</div>
*}

<div class="navigTools" id="unexpended"></div>